{% extends "toast/base.template.html" %}

{% block breadcrumbs %}
	<li><a href="/toast/meeting/view/{{ meeting.id }}">{{ meeting.name }}</a> <span class="divider">/</span></li>
	<li class="active">Edit</li>
{% endblock %}


{% block sidecontent %}
	<div class="btn-toolbar">
		<div class="btn-group">
			<a class="btn" href="/toast/meeting/view/{{ meeting.id }}">View</a>
			<a class="btn active" href="/toast/meeting/edit/{{ meeting.id }}">Edit</a>
			<a class="btn confirm" href="/toast/meeting/delete/{{ meeting.id }}" message="Are you sure you want to delete meeting, {{ meeting.name }}?">Delete</a>
		</div>
	</div>

	<h4>Current Meeting</h4>
	<p class="divider"></p>
	<h5>{{ meeting.name }}</h5>
	<address>
		<b>{{ meeting.address.name }}</b><br />
		{{ meeting.address.street_address }}<br />
		{{ meeting.address.city }}
		{{ meeting.address.state.short_name }}, {{ meeting.address.postalcode }}
	</address>
	<p>Start: {{ meeting.start_datetime }}</p>
	<p>End: {{ meeting.end_datetime }}</p>
{% endblock %}

{% block content %}
	<form method="POST">
	{% csrf_token %}
	<table>
		<tbody>
		<tr>
			<td>{{ form.name.label }}</td>
			<td>{{ form.name }}</td>
		</tr>
		<tr>
			<td>{{ form.address.label }}</td>
			<td>{{ form.address }}</td>
		</tr>
		<tr>	
			<td>{{ form.start_datetime.label }}</td>
			<td>{{ form.start_datetime }}</td>
		</tr>
		<tr>
			<td>{{ form.end_datetime.label }}</td>
			<td>{{ form.end_datetime }}</td>
		</tr>
		<tr>
			<td></td>
			<td><input class="btn btn-primary" type="submit" name="meeting_edit" value="Save Changes" /></td>
		</tr>
		</tbody>
	</table>
	</form>
{% endblock %}